package com.moli.iov.admin.service.impl;

import com.moli.iov.admin.service.VehicleFenceBindingService;
import com.moli.iov.base.model.dto.req.VehicleFenceBindingReqDto;
import com.moli.iov.base.remote.IVehicleFenceBindingRemoteService;
import com.moli.iov.rest.RestResponse;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * The type Vehicle fence binding service.
 *
 * @author wanghualin
 * @date 2019-09-21 09:23:27
 */
@Service
public class VehicleFenceBindingServiceImpl implements VehicleFenceBindingService {

  @Reference(group = "${service.group}", check = false)
  private IVehicleFenceBindingRemoteService fenceBindingRemoteService;

  @Override
  public RestResponse saveVehicleFenceBinding(VehicleFenceBindingReqDto dto) {
    return fenceBindingRemoteService.saveVehicleFenceBinding(dto);
  }

  @Override
  public RestResponse deleteVehicleFenceBinding(VehicleFenceBindingReqDto dto) {
    return fenceBindingRemoteService.deleteVehicleFenceBinding(dto);
  }

  @Override
  public RestResponse listVehicleFenceBindingList(VehicleFenceBindingReqDto dto) {
    return fenceBindingRemoteService.listVehicleFenceBindingList(dto);
  }

  @Override
  public RestResponse listVehicleFenceUnbindingList(VehicleFenceBindingReqDto dto) {
    return fenceBindingRemoteService.listVehicleFenceUnbindingList(dto);
  }

  @Override
  public RestResponse listVehicleFenceDetailList(VehicleFenceBindingReqDto dto) {
    return fenceBindingRemoteService.listVehicleFenceDetailList(dto);
  }

}
